#pragma once
#include"AbstractBox2DTest.h"

class b2Body;

class DemoDestoryFixture : public AbstractBox2DTest
{
public:
	createScene(DemoDestoryFixture)

	static DemoDestoryFixture* create()
	{ 
		DemoDestoryFixture *pRet = new DemoDestoryFixture;
		if (pRet && pRet->init()) 
		{ 
			pRet->autorelease(); 
			return pRet; 
		} 
		else 
		{ 
			delete pRet; 
			pRet = nullptr; 
			return nullptr; 
		} 
	}
	
	bool init();

	virtual void box2DAppReady() override;

	void addFixture();

	void work(float dt);
private:
	b2Body * b;
};